package com.diandi.messages.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Created by mxp on 2017/9/22.
 */
@ConfigurationProperties(prefix = "", locations = "classpath:/email.properties")
@Component
public class MessageEmailProperties {
    private String emailUrl;
    private String emailApiUser;
    private String emailApiKey;
    private String emailFromAddress;

    public String getEmailUrl() {
        return emailUrl;
    }

    public void setEmailUrl(String emailUrl) {
        this.emailUrl = emailUrl;
    }

    public String getEmailApiUser() {
        return emailApiUser;
    }

    public void setEmailApiUser(String emailApiUser) {
        this.emailApiUser = emailApiUser;
    }

    public String getEmailApiKey() {
        return emailApiKey;
    }

    public void setEmailApiKey(String emailApiKey) {
        this.emailApiKey = emailApiKey;
    }

    public String getEmailFromAddress() {
        return emailFromAddress;
    }

    public void setEmailFromAddress(String emailFromAddress) {
        this.emailFromAddress = emailFromAddress;
    }
}